<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="javascript:;" class="sel">{$menutitle}<i></i></a>
		<div class="clear"></div>
	</div>
	<form method="post" id="form" enctype="multipart/form-data">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20 mab20">
		<tr>
			<td width="200" align="right">支付名称：</td>
			<td>{$info['payment_name']}</td>
		</tr>
		<tr>
			<td align="right">支付描述：</td>
			<td>{$info['payment_desc']}</td>
		</tr>
		<tr>
			<td align="right">开启状态：</td>
			<td>
				<div class="layui-form">
					<input type="checkbox" name="payment_state" value="1" <!--{if($info['payment_state']):}-->checked<!--{endif;}--> lay-skin="switch" lay-text="开启|关闭" />
				</div>
			</td>
		</tr>
		<!--{foreach($info['payment_model'] as $k=>$v):}-->
		<tr>
			<td align="right">{$v['name']}：</td>
			<td>
				<!--{if($v['type']=='select'):}-->
				<select name="config[{$k}]" class="inputselect">
				<!--{foreach($v['value'] as $kk=>$vv):}-->
				<option value="{$kk}" <!--{if($kk==$info['payment_config'][$k]):}-->selected="selected"<!--{endif;}-->>{$vv}</option>
				<!--{endforeach;}-->
				</select>
				<!--{elseif($v['type']=='textarea'):}-->
				<textarea name="config[{$k}]" style="width:600px;height:150px;">{$info['payment_config'][$k]}</textarea>				
				<!--{elseif($v['type']=='file'):}-->
				<p><img src="{pe_thumb($info['payment_config'][$k])}" width="120" height="120" style="border:1px solid #ddd" /></p>
				<p class="mat10"><input type="file" name="{$k}" value="{$info['payment_config'][$k]}" /></p>
				<!--{else:}-->
				<input type="text" name="config[{$k}]" value="{$info['payment_config'][$k]}" class="inputall input350" />
				<!--{endif;}-->
			</td>
		</tr>
		<!--{endforeach;}-->
		<!--{if($info['payment_type'] == 'wxpay'):}-->
		<tr>
			<td align="right">JSAPI支付授权目录：</td>
			<td>{$pe['host']}</td>
		</tr>
		<tr>
			<td align="right">Native支付回调链接：</td>
			<td>{$pe['host']}include/plugin/payment/wechat/notify_url.php</td>
		</tr>
		<tr>
			<td align="right">H5支付域名：</td>
			<td>{trim(str_ireplace(array('http://', 'https://'), '', $pe['host']), '/')}</td>
		</tr>
		<!--{endif;}-->
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="hidden" name="pesubmit" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn">
	</div>
	</form>
</div>
<link rel="stylesheet" href="{$pe['host']}include/plugin/layui/css/layui.css">
<script src="{$pe['host']}include/plugin/layui/layui.js"></script>
<script type="text/javascript">
$(function(){
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('back', 500);
		});
	})
})
layui.use(['form'], function(){
	form = layui.form;
});
</script>
<!--{include(pe_tpl('footer.html'));}-->